import axios from "axios";

const baseURL = "/api";

function ajax(url:string,data={},method="post") {

    return axios({
        baseURL,
        url,
        data,
        method
    })
    
}

export default ajax;